//
//  db_Downloading.h
//  AiliPlayer
//
//  Created by xy on 13-1-17.
//
//
//表 DOWNLOADING_INFO
#import <Foundation/Foundation.h>
#import "ScenicScene.h"

@interface db_Downloading : NSObject

//打开数据库
+(void)openDataBase;

//关闭数据库
+(void)closeDatabase;

+ (BOOL)addDownloadInfo:(ScenicScene *)downloadInfo;								//添加一条下载记录

//查询所有的已完成的下载记录
+ (NSMutableArray *)searchAllDownloads;

+ (BOOL)updateDownloadInfo:(ScenicScene*)info;

+ (BOOL)deleteHistory:(ScenicScene *)downloadInfo;								//删除某一条记录

//退出时调用
+(void)saveToDB;

+ (ScenicScene*)getScenic:(NSString*)scenicId language:(NSString*)language;

@end
